
{if !isset($close_top_page)}
{$list->page}
{/if}

<table class="table table-bordered kyo-table">
    <caption>{$name}管理</caption>
    <thead>
        <tr>
            <th>ID</th>
            <th>状态</th>
            <th>类型标识</th>
            <th>类型名称</th>
            <th>类型路径</th>
            <th>排序号</th>
            <th>更新时间</th>
            <th>操作</th>
        </tr>
    </thead>
    <tbody>
{foreach $list->data as $row}
        <tr>
            <td>{$row.id}</td>
            <td>{$row.state}</td>
            <td>{$row.tag}</td>
            <td>{$row.name}</td>
            <td>{$row.path}</td>
            <td>{$row.sort}</td>
            <td>{$row.mtime}</td>
            <td>
                {:html_pop(url('Type/subType', "pid=".$row.id."&name=".$row.name), 750, 500, $row.name."&emsp;子类型管理", 'a', '子类型')}&emsp;
                {:html_pop(url('Type/edit', "data_id=".$list->id."&id=".$row.id), 600, 300, '编辑类型', 'a', '编辑')}&emsp;
                <div class="btn-group dropup">
                <button type="button" class="btn btn-xs btn-primary dropdown-toggle" data-toggle="dropdown">更多
                <span class="caret"></span>
                <span class="sr-only">Toggle Dropdown</span>
                </button>
                <ul class="dropdown-menu" role="menu">
                        {if $row.stick == 0}
                        <li>{:html_link(url('Type/move', "data_id=".$list->id."&id=".$row.id."&move=top"), null, 'a', '置顶', "确定将此记录置顶吗?")}</li>
                        {else/}
                        <li>{:html_link(url('Type/move', "data_id=".$list->id."&id=".$row.id."&move=ntop"), null, 'a', '取消置顶', "确定将此记录取消置顶吗?")}</li>
                        {/if}
                        <li>{:html_link(url('Type/move', "data_id=".$list->id."&id=".$row.id."&move=up"), null, 'a', '上移', "确定将此记录上移吗?")}</li>
                        <li>{:html_link(url('Type/move', "data_id=".$list->id."&id=".$row.id."&move=down"), null, 'a', '下移', "确定将此记录下移吗?")}</li>
                        <li>{:html_link(url('Type/move', "data_id=".$list->id."&id=".$row.id."&move=bottom"), null, 'a', '置尾', "确定将此记录置尾吗?")}</li>
                        <li>{:html_link(url('Type/del', "data_id=".$list->id."&id=".$row.id), null, 'a', '删除', "确定删除吗?")}</li>
                </ul>
                </div>

            </td>
        </tr>
{/foreach}
    </tbody>
</table>

{if !isset($close_bottom_page)}
{$list->page}
{/if}

